﻿<%@ Page Language="C#" MasterPageFile="~/admin/AdminTemplate.master" AutoEventWireup="true" CodeFile="addnews.aspx.cs" Inherits="addnews" Title="Admin" %>

<%@ Register Assembly="DevExpress.Web.ASPxEditors.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    
    <asp:Panel ID="Panel1" runat="server" GroupingText="Thêm Tin Tức" BorderStyle="None" BorderWidth="2px" Width="91%" BorderColor="White" ForeColor="White" Height="541px">
    <br />
    <br />
    <table width="96%">
        <tr>
            <td style="width: 201px">
                <span style="color: highlighttext">
                Tiêu đề tin tức :</span></td>
            <td style="width: 121px">
                <dxe:aspxtextbox id="txtNewsTitle" runat="server" width="292px" Height="20px" MaxLength="30"></dxe:aspxtextbox>
            </td>
                    </tr>
        <tr>
            <td style="width: 201px; height: 458px;">
                <span style="color: highlighttext">
                Nội dung </span></td>
            <td style="width: 121px; height: 458px;">
                <fckeditorv2:fckeditor id="txtnewsContent" runat="server" BasePath="~/admin/fckeditor/" Height="400px"></fckeditorv2:fckeditor>
            </td>
                    </tr>
        <tr>
            <td style="width: 201px">
            </td>
            <td style="width: 121px" align="left">
                <asp:Button ID="btAddNews" runat="server" Text="Thêm" OnClick="btAddNews_Click" /></td>
        </tr>
        <tr>
            <td style="width: 201px; height: 54px;">
            </td>
            <td style="width: 121px; height: 54px;">
                <asp:Label ID="thongbao" runat="server"></asp:Label><br />
                <br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtNewsTitle"
                    ErrorMessage="RequiredFieldValidator">* Bạn phải nhập tiêu đề tin tức</asp:RequiredFieldValidator><br />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtnewsContent"
                    ErrorMessage="* Bạn phải nhập nội dung"></asp:RequiredFieldValidator><br />
                <br />
            </td>
            
        </tr>
    </table>
    </asp:Panel>
</asp:Content>

